package com.itljm.cxrMarket.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itljm.cxrMarket.entity.HygienePenalties;
import com.itljm.cxrMarket.service.HygienePenaltiesService;
import com.itljm.cxrMarket.mapper.HygienePenaltiesMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HygienePenaltiesServiceImpl extends ServiceImpl<HygienePenaltiesMapper, HygienePenalties> implements HygienePenaltiesService{
    @Autowired
    private HygienePenaltiesMapper hygienePenaltiesMapper;

    @Override
    public List<HygienePenalties> findPenaltiesByPage(Page<HygienePenalties> infoPage, QueryWrapper<HygienePenalties> wrapper) {
        return hygienePenaltiesMapper.findHygienePenaltiesByPage(infoPage,wrapper);
    }

    @Override
    public HygienePenalties findHygienePenaltiesById(Integer id) {
        return hygienePenaltiesMapper.findHygienePenaltiesById(id);
    }
}




